<template>
  <div class="home">
    <h1 v-f="'aaa'">主应用首页</h1>
    <HelloWorld type="primary" @click="click_handler" a="aaa" :uname="uname">click me</HelloWorld>
  </div>
</template>

<script>
import HelloWorld from './../components/HelloWorld.vue'
export default {
  name: "Home",
  components:{
    HelloWorld
  },
  data(){
    return{
      uname:"张根源"
    }
  },
  methods:{
    click_handler(){
      console.log("object")
    }
  },
  directives:{
    f:{
      inserted(el,binding){
        console.log(el.parentNode,binding)
      }
    }
  }
};
</script>

<style lang="scss" scoped></style>
